import { makeAutoObservable } from 'mobx';

const delay = (ms: number) => new Promise((res) => setTimeout(res, ms));

class Num {
    num: number = 0;

    constructor() {
        makeAutoObservable(this);
    }

    async addNum() {
        await delay(1000);
        this.num += 1;
    }
}

export default new Num();
